package com.xnew.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author yangcd
 * @Date 2020/10/14
 */
@Configuration
@EnableConfigurationProperties(ApplicationConfiguration.class)
@ConfigurationProperties(prefix = "xnew", ignoreInvalidFields = true)
public class ApplicationConfiguration {

    private String redisKeyPrefix;

    private String redisLockKeyPrefix;

    public String getRedisKeyPrefix() {
        return redisKeyPrefix;
    }

    public void setRedisKeyPrefix(String redisKeyPrefix) {
        this.redisKeyPrefix = redisKeyPrefix;
    }

    public String getRedisLockKeyPrefix() {
        return redisLockKeyPrefix;
    }

    public void setRedisLockKeyPrefix(String redisLockKeyPrefix) {
        this.redisLockKeyPrefix = redisLockKeyPrefix;
    }
}
